package com.college.populator.impl;

import javax.servlet.http.HttpServletRequest;

import com.college.domain.User;
import com.college.populator.UserCredentialsPopulator;

public class UserCredentialsPopulatorImpl implements UserCredentialsPopulator {

	@Override
	public void userCredentialsPopulation(HttpServletRequest request, User user) {

		user.setUserName(request.getParameter("userName"));
	    user.setPassword(request.getParameter("password"));
	    user.setUserFirstName(request.getParameter("userFirstName"));
	    user.setUserDesignation(request.getParameter("userDesignation"));
	    user.setUserDepartment(request.getParameter("userDepartment"));
	}

}
